<template>
  <el-dialog
    top="30px"
    width="80%"
    title="风险审查报告"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <risk-report @close="beforeClose" v-bind="$attrs" @success="handleSuccess"></risk-report>
  </el-dialog>
</template>

<script>
import RiskReport from '@/credit/views/county/unionProvince/components/riskReport/Index'
export default {
  components: {
    RiskReport,
  },
  props: {
    visible: Boolean,
  },
  data() {
    return {}
  },

  created() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    handleSuccess() {
      this.$emit('success', true)
    },
  },
}
</script>
<style lang="scss" scoped></style>
